<!DOCTYPE html>

<html>

<head>

  <meta charset="utf-8">

  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

  <title>{notempty name="$info.title"}{$info.title}-{/notempty}{notempty name="$web"}{$web.title}{else /}Easy Tp{/notempty}</title>

  <meta name="keywords" content="{notempty name="$info.tag"}{$info.tag}{else /}{$web.tag}{/notempty}">

  <meta name="description" content="{notempty name="$info.description"}{$info.description}{else /}{$web.desc}{/notempty}">

  <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css">

  <link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.css">

  <link rel="stylesheet" href="__CSS__/tplay.css">

</head>

<body>

  <div class="layui-layout layui-layout-admin">

    <div class="layui-header">

      <ul class="layui-nav tplay-float-auto tplay-header">

        <li class="layui-nav-item" lay-unselect>
          <a href="/" class="tplay-logo">{notempty name="$web"}{$web.name}{else /}Easy Tp{/notempty}</a>
        </li>

        <li class="layui-nav-item" id="tplay-hearder-search" lay-unselect>

          <form class="layui-form" action="{:url('index/article/index')}" method="post">

            <div class="layui-input-inline">

              <input type="test" name="keywords" placeholder="search content" autocomplete="off" class="layui-input tplay-seach">

            </div>

          </form>

        </li>

        {volist name="$menu" id="vo"}

        <li class="layui-nav-item" lay-unselect>
          <a href="{:url($vo.href)}" {eq name="$vo.is_target" value="1"}target="_blank"{/eq}>{$vo.name}</a>
          {notempty name="$vo.list"}
          <dl class="layui-nav-child">
            {volist name="$vo.list" id="po"}
            <dd><a href="{$po.href}">{$po.name}</a></dd>
            {/volist}
          </dl>
          {/notempty}
        </li>

        {/volist}
        
        <li class="layui-nav-item tplay-header-right">
          {notempty name="$user"}
          <a href="javascript:;"><img src="__IMG__/msg.jpg" width="35" style="border-radius: 50%"> {$user.name}</a>
          <dl class="layui-nav-child">
            <dd><a href="{:url('index/user/logout')}">退出</a></dd>
          </dl>
          {else /}
          <a href="javascript:;">登录</a>
          <dl class="layui-nav-child">
            <dd><a href="{:url('index/user/login')}">登录</a></dd>
            <dd><a href="{:url('index/user/registered')}">注册</a></dd>
          </dl>
          {/notempty}
        </li>

      </ul>

    </div>

